﻿using Furion.CMS.Core.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Core.Permission
{
    /// <summary>
    /// 权限定义
    /// </summary>
    public class PermissionDefinition
    {
        protected internal PermissionDefinition(string name, string displayName,bool isEnabled = default)
        {
            Name = name;
            DisplayName = displayName;
            IsEnabled = isEnabled;
        }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; private set; }
        /// <summary>
        /// 显示名称
        /// </summary>
        public string DisplayName { get; private set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }
    }
}
